/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const chartsRouter = {
  path: '/user',
  component: Layout,
  redirect: 'noRedirect',
  alwaysShow: true,
  name: 'User',
  meta: {
    title: '会员管理',
    icon: 'chart'
  },
  children: [
    {
      path: 'all',
      component: () => import('@/views/user/all'),
      name: 'UserAll',
      meta: { title: '会员总览', noCache: true }
    },
    {
      path: 'list',
      component: () => import('@/views/user/list'),
      name: 'UserList',
      meta: { title: '会员列表', noCache: true }
    },
    {
      path: 'detail',
      component: () => import('@/views/user/detail'),
      name: 'UserDetail',
      meta: { title: '会员详情页', noCache: true }
    },
  ]
}

export default chartsRouter
